package cn.j229.bug.zhongxuan.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysUser {

    private Integer id;
    private String jobNumber;
    private String name;
    private String avatar;
    private String password;
    private Timestamp createdDate;
    private String phoneNumber;
    private Integer companyId;
    private Integer type;
    private String idCard;

    // 声明List<Auth> 表示用户对象所拥有的权限集合
    private List<Auth> auths = new ArrayList<Auth>();
}
